{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "db34b1ce-14c4-474a-acc0-a0331fbf13ae",
   "metadata": {},
   "source": [
    "设置api key"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "6257d5f8-9f59-4ca5-8851-e998d7e33309",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 设置环境变量\n",
    "import os\n",
    "os.environ[\"OPENAI_API_KEY\"] = \"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\"\n",
    "os.environ[\"OPENAI_API_BASE\"] =\"https://api.openai.com/v1\"\n",
    "os.environ[\"OPENAI_PROXY\"] = \"https://ai-yyds.com/v1\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ae1a47ef-7b48-4ecc-b562-774998ca9c91",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python (langchain)",
   "language": "python",
   "name": "langchain-env"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
